package neu.soft.controller;

import neu.soft.service.impl.DIRelationServiceImpl;
import neu.soft.vo.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/diRelation")
@CrossOrigin
public class DIRelationController {
    @Autowired
    private DIRelationServiceImpl diRelationService;

    @RequestMapping(value = "/addDIRelation")
    public ResultBean<Integer> addDIRelation(@RequestBody Map<String,Object> map){
        return diRelationService.addDIRelation(map);
    }
}
